package com.sky.utils;


//注册为组件
public class ThreadLocalUtil {

    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();
    //根据键获取值

    public static String  get(){
        return  threadLocal.get();
    }

    //设置值
    public static void set(String value, Long empId){
        threadLocal.set(value);
    }
    //删除值

    public static void remove(){
        threadLocal.remove();
    }
}
